<?php
/**
 *
 *
 * This file is part of Webappkit, a packages system for PHP web apps
 * @link http://webappkit.net
 * @package
 * @subpackage
 * @author J.Ducastel <nospam0@ducastel.name>
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
 */

class DjEmailField extends DjRegexField {

    public $regex = '/^[._0-9a-zA-Z-]+@[.0-9a-zA-Z-]+\.[0-9a-zA-Z]{2,4}$/';

    protected $error_messages = array(
        'required' => 'An email is required'
        , 'invalid' => 'Please give a valid email');
}